package com.tfjybj.itoo.exam.provider.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tfjybj.itoo.exam.entity.ExamNoticeEntity;
import com.tfjybj.itoo.exam.model.ExamNoticeModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ExamNoticeDao接口
 * examNotice表
 *
 * @author 贾建清
 * @version 2.0.0
 * @since 2.0.0 2018-12-26 20:56:50
 */
@Repository("examNoticeDao")
public interface ExamNoticeDao extends BaseMapper<ExamNoticeEntity> {

//    List<ExamNoticeEntity> queryByStudentNo(String studentNo);

    /**
     * 根据课程查询该课程内的人员
     *
     * @return
     */
    List<ExamNoticeModel> queryNoticeByCourse(@Param("course") String course);

    /**
     * 高级搜索
     *
     * @param examNoticeModel
     * @return
     */
    List<ExamNoticeModel> queryNoticeByInfo(@Param("examNoticeModel") ExamNoticeModel examNoticeModel);

    List<ExamNoticeModel> queryExamNoticeByStudentNo(@Param("studentNo") String studentNo);
}
